package com.ausware.pojo;

import java.io.Serializable;

public class Person implements Comparable<Person>,Serializable{
/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
private String sessionId;
private String content;
private String end;
private Long timeMillis;




public String getSessionId() {
	return sessionId;
}




public void setSessionId(String sessionId) {
	this.sessionId = sessionId;
}




public String getContent() {
	return content;
}




public void setContent(String content) {
	this.content = content;
}




public String getEnd() {
	return end;
}




public void setEnd(String end) {
	this.end = end;
}




public Long getTimeMillis() {
	return timeMillis;
}




public void setTimeMillis(Long timeMillis) {
	this.timeMillis = timeMillis;
}




public Person(String sessionId, String content, String end, Long timeMillis) {
	this.sessionId = sessionId;
	this.content = content;
	this.end = end;
	this.timeMillis = timeMillis;
}




public Person() {
	
}




@Override
public String toString() {
	return "{sessionId=" + sessionId + ", content=" + content + ", end=" + end + ", timeMillis=" + timeMillis
			+ "}";
}




@Override
public int compareTo(Person o) {
	// TODO Auto-generated method stub
	return (int) (this.timeMillis - o.timeMillis);
}

}
